package com.study.designPattern.action.strategy;

/**
 * @author ysy
 * @version 1.0
 * @Title: StrategyContext
 * @Note <b>ProjectName:</b> cusc-venus
 * <br><b>PackageName:</b> com.cusc.venus.acc.center.util.designPattern.strategy
 * <br><b>ClassName:</b>
 * <br><b>Date:</b>
 *
 */
public class StrategyContext {
    private CalculateStrategy strategy;

    public StrategyContext(CalculateStrategy strategy) {
        this.strategy = strategy;
    }

    public int executeStrategy(int num1, int num2){
        return strategy.calculate(num1, num2);
    }

}
